public class Student {
    private String name;
    private Integer num;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Student(Integer num, String name) {
        this.name = name;
        this.num = num;

    }
    @Override
    public String toString() {
        return  "Student [name=" + name + ", num=" + num + "]";
    }
}
